@model Web.Models.Ticket

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Ticket</legend>

    <div class="display-label">ReportedBy</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.ReportedBy).ToString()</div>

    <div class="display-label">ResolvedBy</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.ResolvedBy).ToString()</div>

    <div class="display-label">Opened</div>
    <div class="display-field">@String.Format("{0:g}", Model.Opened)</div>

    <div class="display-label">Closed</div>
    <div class="display-field">@String.Format("{0:g}", Model.Closed)</div>

    <div class="display-label">Updated</div>
    <div class="display-field">@String.Format("{0:g}", Model.Updated)</div>

    <div class="display-label">Status</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Status).ToString()</div>

    <div class="display-label">Detail</div>
    <div class="display-field">@Model.Detail</div>

    <div class="display-label">History</div>
    <div class="display-field">@(Model.History == null ? "None" : Model.History.Count.ToString())</div>

    <div class="display-label">AssignedTo</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.AssignedTo).ToString()</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


